package com.project.common.domain.po;

import com.fasterxml.jackson.annotation.JsonIgnore;
import javax.persistence.Column;
import javax.persistence.MappedSuperclass;
import javax.persistence.Version;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;



/**
 * BaseVersionPo
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@MappedSuperclass
public class BaseVersionPO extends BasePoConvert {
    @Version
    @JsonIgnore
    private Long dataVersion;
    /**
     * 是否删除
     */
    @JsonIgnore
    @Column(columnDefinition = "tinyint(3) DEFAULT '0' COMMENT '数据状态，状态为0表示正常状态，状态为1表示删除状态'")
    private Integer isDelete = 0;
}